package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 会议对象 sys_meeting
 * 
 * @author ruoyi
 * @date 2024-09-23
 */
public class SysMeeting extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房间ID */
    private Long roomId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 会议内容 */
    @Excel(name = "会议内容")
    private String content;

    /** 会议密码 */
    @Excel(name = "会议密码")
    private String password;

    /** 会议开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "会议开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 会议结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "会议结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 期望结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "期望结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date respectEndTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 帐号状态（0正常 1结束） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=结束")
    private String status;

    private String userName;

    private  String nickName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setRoomId(Long roomId)
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    @NotBlank(message = "会议内容不能为空")
    @Size(min = 0, max = 100, message = "会议内容长度不能超过100个字符")
    public String getContent() 
    {
        return content;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setRespectEndTime(Date respectEndTime) 
    {
        this.respectEndTime = respectEndTime;
    }

    public Date getRespectEndTime() 
    {
        return respectEndTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roomId", getRoomId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("password", getPassword())
            .append("createTime", getCreateTime())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("respectEndTime", getRespectEndTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
